package com.googlecode.johmap.image;

import static java.lang.String.format;
import johmap.Tableimagedecision;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Component;

@Component
public class TableImageDecisionBo extends Tableimagedecision {

    protected final Logger logger = LoggerFactory.getLogger(getClass());

    public TableImageDecisionBo() {
    }

    public TableImageDecisionBo(Tableimagedecision decision) {
        if (decision != null) {
            this.bet = decision.getBet();
            this.wait = decision.getWait();
        }
    }

    public void log() {
        logger.info(format("Decision bet=%s for wait=%s", bet, wait));
    }
}
